package com.example.common.exception;

import lombok.Getter;

/**
 * packageName com.example.common.exception
 *
 * @author cui haida
 * @version JDK 8
 * 2025/8/4
 */
@Getter
public class BusinessException extends RuntimeException {

    private final int code;

    public BusinessException(int code, String message) {
        super(message);
        this.code = code;
    }

    public BusinessException(String message) {
        this(500, message);
    }
}